<div th:fragment="groupChild">
    <th:block th:each="item,vs:${treeList}">
        <tr class="">
            <td th:lid="${item.id}" th:upId="${item.upId}" th:upFamily="${item.upFamily}">
                <i class="fa" th:if="${level>0}" th:each="i:${#numbers.sequence(1,level)}">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</i>
                <input th:if="${item.limitValue == 1}" type="checkbox" checked class="i-checks" th:value="${item.id}">
                <input th:if="${item.limitValue == 0}" type="checkbox" class="i-checks" th:value="${item.id}">
                <i th:if="${item.upChild >= 1}" class="fa fa-file"></i>
                <i th:if="${item.upChild < 1}" class="fa fa-th-list"></i>
                [[${item.resName}]]([[${item.resLimit}]])
            </td>
            <td class="text-center">
                <selection class="text-info" th:if="${item.resType == 0}">页面</selection>
                <selection class="text-danger" th:if="${item.resType == 1}">菜单</selection>
            </td>
        </tr>
        <!--页面内容结束-->
        <div th:if="${not #lists.isEmpty(item.childs)}"
             th:include="sys/group/child :: groupChild"
             th:with="index=${index+1},level=${level+1},treeList=${item.childs}"></div>
    </th:block>
</div>